import request from '@/util/request';

export const getRepairType = function(param){
	var url = '/configure/getRepairType';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRepair = function(param){
	var url = '/staff/getRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRepairDetail = function(param){
	var url = '/staff/getRepairDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const grabbingRepair = function(param){
	var url = '/staff/grabbingRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const offerRepair = function(param){
	var url = '/staff/offerRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const searchRepair = function(param){
	var url = '/staff/searchRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const completeRepair = function(param){
	var url = '/staff/completeRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const searchTypeRepair = function(param){
	var url = '/staff/searchTypeRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const unCompleteRepair = function(param){
	var url = '/staff/unCompleteRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyRepair = function(param){
	var url = '/staff/getMyRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}